import com.ynny.controller.UserController;
import org.junit.jupiter.api.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class test {
    @Test
    public void test() {
        ClassPathXmlApplicationContext classPathXmlApplicationContext =
                new ClassPathXmlApplicationContext( "applicationContext.xml");
        UserController userController = classPathXmlApplicationContext
                .getBean("userController",
                        UserController.class);
        String info = userController.toUser();

        System.out.println(info);

    }
}
